A line segment is a part of s straight line that is bounded by two distinct end points. The length of it is given by the distance of the end points in Euclidean space.
Definition
In a vector space over or , a subset is a line if it can be parametrised as:
Where are the endpoints of the segment.
Openness
Depending on the openness interval of , we can have several types of line segments:
Open segment: where the end points are not the part of the segment
Closed segment: where the end points are part of the segment
Half-open segment: where only one of the end points are included